import matplotlib.pyplot as plt
import numpy as np

class homework():
    def function():
        x = np.linspace(-10, 10, 20)
        y = x**2 + 2
        pic = plt.plot(x,y)
        plt.vlines(x = x, ymin = 0, ymax = y, colors='r', alpha = 0.5)
        plt.show()


if __name__ == 'main':
    myHomework = homework()
    myHomework.function()